import request from './request'

export const getOffice = () => {
  return request({
    url: 'office1/',
    method: 'GET'
  })
}
export const addOffice = (data) => {
  return request({
    url: 'office2/',
    method: 'POST',
    data
  })
}

export const editOffice = (data) => {
  return request({
    url: 'office3/',
    method: 'post',
    data
  })
}

export const deleteOffice = (oid) => {
  return request({
    url: 'office4/',
    method: 'POST',
    data: {
      oid
    }
  })
}
